package com.zp.self;

import com.dtflys.forest.springboot.annotation.ForestScan;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zengpeng on 2021/3/31
 */
@SpringBootApplication
@RestController
@EnableCaching
@ForestScan(basePackages = "com.zp.self.module.工具.rpc远程访问.forest.rpcInterface")
public class ZpMiniModuleApplication {
    public static void main(String[] args) {
        SpringApplication.run(ZpMiniModuleApplication.class, args);
    }

    @Value("${server.port}")
    String port;

    @GetMapping("/hi")//上传
    public String hi(String name ){
        return "hi "+name+",  are you a master ? 这里是端口："+port;
    }

}
